package org.fuys.etp.core.model.event;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.ApplicationEvent;

/**
 * @projectName: fuys-etp-final
 * @package: org.fuys.etp.core.model.event
 * @className: EtpCheckEvent
 * @author: WangJing
 * @description: 弹性线程池检查事件
 * @date: 2025/2/20 21:56
 * @version: 1.0
 */
public class EtpCheckEvent extends ApplicationEvent {
    private String poolType;
    private String poolName;
    private EtpReportEvent reportEvent;

    public EtpCheckEvent(Object source,String poolType,String poolName,
                         EtpReportEvent reportEvent) {
        super(source);
        this.poolType = poolType;
        this.poolName = poolName;
        this.reportEvent = reportEvent;
    }

    public EtpCheckEvent(Object source){
        super(source);
    }




    public String getPoolType() {
        return poolType;
    }

    public void setPoolType(String poolType) {
        this.poolType = poolType;
    }

    public String getPoolName() {
        return poolName;
    }

    public void setPoolName(String poolName) {
        this.poolName = poolName;
    }

    public EtpReportEvent getReportEvent() {
        return reportEvent;
    }

    public void setReportEvent(EtpReportEvent reportEvent) {
        this.reportEvent = reportEvent;
    }
}
